package cn.ahaiahaixx.dp.chain;

/**
 * 数字职责链
 * 
 * @author Aiden Pearce
 *
 */
public class NumberChin extends AbstractChain {

  public void doChain(String info) {
    if (info == null) {
      return;
    }
    // 只显示数字
    for (char c : info.toCharArray()) {
      if (Character.isDigit(c)) {
        System.out.print(c);
      }
    }
    System.out.println();
  }
}
